package com.ruoyi.business.dto;

import com.ruoyi.business.annotations.PrivacyEncrypt;
import com.ruoyi.business.enums.PrivacyTypeEnum;
import lombok.Data;

/**
 * @author Wu Yuwei
 * @Description:
 * @date 2023/1/4 12:41
 */
@Data
public class PeopleDto {

    private Integer id;

    private String name;

    private Integer sex;

    private Integer age;

    @PrivacyEncrypt(type = PrivacyTypeEnum.CUSTOMER) // 隐藏手机号
    private String phone;

    @PrivacyEncrypt(type = PrivacyTypeEnum.EMAIL) // 隐藏邮箱
    private String email;

    private String sign;
}
